package cn.edu.scau.cmi.chenyuesong.simpleFactoryMethod;

import cn.edu.scau.cmi.chenyuesong.simpleFactoryMethod.domain.*;

public class SimpleMeatFactory {

    public static Meat produce (String meatType) {
        Meat meat = null;
        switch (meatType) {
            case "beef": meat = new Beef();break;
            case "chicken": meat = new Chicken();break;
            case "pork": meat = new Pork();break;
        }
        return meat;
    }
}
